﻿using UnityEngine;
using System.Collections;

public class ArrowController : MonoBehaviour {

	public GateManager gateManager;

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		transform.rotation = Quaternion.LookRotation(gateManager.GetCurrentTarget().transform.position-transform.position);
	}
}
